package com.ims.system.domain;

import com.ims.common.annotation.Excel;
import com.ims.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 城市对象 sys_city
 *
 * @author srm
 * @date 2023-05-18
 */
public class SysCity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    /** 父节点id */
    @Excel(name = "父节点id")
    private Long parentId;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String name;

    /** 级别 */
    @Excel(name = "级别")
    private String level;

    /** 邮编 */
    @Excel(name = "邮编")
    private String zip;

    /** 省id */
    @Excel(name = "省id")
    private String provinceId;

    /** 省 */
    @Excel(name = "省")
    private String provinceName;

    /** 城市id */
    @Excel(name = "城市id")
    private String cityId;

    /** 市 */
    @Excel(name = "市")
    private String cityName;

    /** 区县id */
    @Excel(name = "区县id")
    private String districtId;

    /** 区县 */
    @Excel(name = "区县")
    private String districtName;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 删除状态:0 未删除,1已删除 */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setLevel(String level)
    {
        this.level = level;
    }

    public String getLevel()
    {
        return level;
    }
    public void setZip(String zip)
    {
        this.zip = zip;
    }

    public String getZip()
    {
        return zip;
    }
    public void setProvinceId(String provinceId)
    {
        this.provinceId = provinceId;
    }

    public String getProvinceId()
    {
        return provinceId;
    }
    public void setProvinceName(String provinceName)
    {
        this.provinceName = provinceName;
    }

    public String getProvinceName()
    {
        return provinceName;
    }
    public void setCityId(String cityId)
    {
        this.cityId = cityId;
    }

    public String getCityId()
    {
        return cityId;
    }
    public void setCityName(String cityName)
    {
        this.cityName = cityName;
    }

    public String getCityName()
    {
        return cityName;
    }
    public void setDistrictId(String districtId)
    {
        this.districtId = districtId;
    }

    public String getDistrictId()
    {
        return districtId;
    }
    public void setDistrictName(String districtName)
    {
        this.districtName = districtName;
    }

    public String getDistrictName()
    {
        return districtName;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("level", getLevel())
            .append("zip", getZip())
            .append("provinceId", getProvinceId())
            .append("provinceName", getProvinceName())
            .append("cityId", getCityId())
            .append("cityName", getCityName())
            .append("districtId", getDistrictId())
            .append("districtName", getDistrictName())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
